banIP: update 1.5.3-2
authorDirk Brenken <[email protected]>
Mon, 3 Mar 2025 18:44:37 +0000 (19:44 +0100)
committerDirk Brenken <[email protected]>
Mon, 3 Mar 2025 18:45:11 +0000 (19:45 +0100)
* fix uci config processing (ban_logterm)
* update the readme

Signed-off-by: Dirk Brenken <[email protected]>
net/banip/Makefile
net/banip/files/README.md
net/banip/files/banip-functions.sh

index 65804b16f2806aaf82439e4a4e9ba839cb79d674..6a8407dde2887f72740e9c555ad076459bb1b55d 100644 (file)
@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=banip
 PKG_VERSION:=1.5.3
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 PKG_LICENSE:=GPL-3.0-or-later
 PKG_MAINTAINER:=Dirk Brenken <[email protected]>
 
index 0b1f947d43e4908a45fc55e103ecaa5789531584..b9fa19180135b11430c40d6452791b58ae7147c0 100644 (file)
@@ -354,7 +354,7 @@ LuCI     : 'luci: failed login'
 sshd1    : 'error: maximum authentication attempts exceeded'
 sshd2    : 'sshd.*Connection closed by.*\[preauth\]'
 asterisk : 'SecurityEvent=\"InvalidAccountID\".*RemoteAddress='
-nginx    : 'received a suspicious remote IP '\''.*'\'''
+nginx    : 'received a suspicious remote IP .*'
 openvpn  : 'TLS Error: could not determine wrapping from \[AF_INET\]'
 AdGuard  : 'AdGuardHome.*\[error\].*/control/login: from ip'
 ```
index 940765394beb4a88ed2518cdb832c30c309d8d53..979506f49ee7ec29318cb7b6c66a45a3ee79f98c 100644 (file)
@@ -267,7 +267,14 @@ f_conf() {
                        local append option="${1}" value="${2//\"/\\\"}"
 
                        eval "append=\"\${${option}}\""
-                       eval "${option}=\"${append}${value} \""
+                       case "${option}" in
+                               "ban_logterm")
+                                       eval "${option}=\"${append}${value}\\|\""
+                                       ;;
+                               *)
+                                       eval "${option}=\"${append}${value} \""
+                                       ;;
+                       esac
                }
        }
        config_load banip